import request from "../utils/request";

export function subLogin(ruleForm){
    return request({
        url: '/ses/mdStoreUser/login',
        method: 'post',
        data: ruleForm
    })
}
export function list(currentPage,pageSize){
    return request({
        url: '/ps/mdStore/selectStore/'+currentPage+"/"+pageSize
    })
}
export function warninglist(id){
    return request({
        url: '/ps/mdStore/selectWarning/'+id
    })
}
export function warning(id){
    return request({
        url: '/ps/mdStore/warning/'+id,
        method: 'post'
    })
}
export function order(id){
    return request({
        url: '/ses/pmEvaluate/order/'+id
    })
}
export function getEvaluate(storeId,currentPage,pageSize){
    return request({
        url: '/ses/pmEvaluate/selectList/'+storeId+"/"+currentPage+"/"+pageSize,
        method: 'get',
    })
}
export function search(stroreSearchVo){
    return request({
        url: '/ps/mdStore/search',
        method: 'get',
        params:{page:stroreSearchVo.page,
            limit:stroreSearchVo.limit,
            storeName:stroreSearchVo.storeName
        }
    })
}
export function Evaluate(currentPage,pageSize){
    return request({
        url: '/ps/pmEvaluate/list/'+currentPage+"/"+pageSize,
        method: 'get',
    })
}
export function goods(currentPage,pageSize){
    return request({
        url: '/ps/pmEvaluate/goods/'+currentPage+"/"+pageSize,
        method: 'get',
    })
}
export function service(currentPage,pageSize){
    return request({
        url: '/ps/pmEvaluate/service/'+currentPage+"/"+pageSize,
        method: 'get',
    })
}
export function stores(){
    return request({
        url: '/ps/mdStore/stores',
        method: 'get',
    })
}
export function address(orderitemId){
    return request({
        url: '/ses/plOrderitem/selectAddress/'+orderitemId
    })
}
